Skip to content

Remove Uno on WinUI 2 (Uno.UI) support - #906

Merged
Sergio0694 merged 3 commits into
mainfrom
sergio0694-remove-uno-winui2
Dec 4, 2026
Merged

Sergio0694 merged 3 commits into
mainfrom
sergio0694-remove-uno-winui2

Conversation

@Sergio0694

@Sergio0694 Sergio0694 commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 4b2f5b0f3f22a1528cc8790bd4cd5221f5f72dd6

Dimension Assessment Rationale
Change confidence 8/10 ↑ Release x64 builds of the all-components solution succeed locally for uwp (WinUI 2) and wasdk (WinUI 3), re-run against the final tooling main pointer.
↑ Uno (WinUI 3) wasm/wpf/linuxgtk build and pack of Behaviors, SettingsControls, Converters and Extensions succeeded; restored assets have Uno.WinUI and no Uno.UI; PackageId variants are Uwp for uwp and WinUI for wasdk/Uno.
↑ Build-Toolkit-Components.ps1 -MultiTargets all -WinUIMajorVersion 2 packs only the CommunityToolkit.Uwp.* packages; -MultiTargets wasm -WinUIMajorVersion 2 now throws as intended; workflow YAML parses and the matrices expand as expected.
↓ The UWP test head discovers no tests (the shared test imports are only enabled for wasdk in tooling), and WinAppSDK tests can't run locally (no .NET 9 runtime).
↓ macos/ios/android heads (no workloads) and the CI jobs themselves were not run.

Stacked on #905 (rebase onto main once it merges). The tooling submodule points at tooling main 4765b1b (Tooling-Windows-Submodule#323), which also contains the already-merged #321 (slngen to .slnx) that this PR adapts to.

Fixes

Removes Uno on WinUI 2 (Uno.UI) support, following Tooling-Windows-Submodule#323. Uno is now WinUI 3 (Uno.WinUI) only; native UWP (uwp MultiTarget, WinUI 2) is unchanged.

PR Type

  • Build or CI related changes
  • Refactoring (no functional changes, no api changes)

What is the new behavior?

  • Bumped the tooling submodule to the squash-merge of Tooling-Windows-Submodule#323 on tooling main (4765b1b, includes TabbedCommandBar tab names missing on Wasm  #321).
  • CI: the build matrix is now an explicit include list (uwp for WinUI 2; wasdk and all Uno targets for WinUI 3) so WinUI 2 Uno legs are gone. The package job no longer passes -ExcludeMultiTargets (the tooling resolves it from -WinUIMajorVersion) and skips uno-check for WinUI 2. wasm-linux passes -MultiTargets wasm. Generate steps pass -Launch off and MSBuild builds the .slnx (vs-version [17.13,)).
  • Removed the dead IsUno AND WinUIMajorVersion == '2' blocks (and Uno.Microsoft.Xaml.Behaviors.Interactivity) from component Dependencies.props; the Uno group now just uses IsUno.
  • Removed Uno.UI mentions from component ReadMes and the root ReadMe; Uno apps are pointed to CommunityToolkit.WinUI.*. The Uno package tag is only added to the WinUI package variant.
  • Source: dropped HAS_UNO && WINUI2 conditions and an unreachable WINUI2 branch (FocusBehavior, ColorPicker, ColorToDisplayNameConverter).
  • SlnGen leftovers: removed the dotnet tool and SlnGenSolutionItem items, switched .gitignore, .vscode, .devcontainer and GenerateAllSolution.bat (default targets no longer include uwp, optional WinUI version arg) to .slnx.

Validated locally

  • GenerateAllSolution.ps1 (CI command forms) + msbuild /restore in Release: uwp/WinUI 2 and wasdk/WinUI 3 all-components solutions build with 0 errors.
  • Build-Toolkit-Components.ps1: Uno wasm,wpf,linuxgtk (WinUI 3) and all with WinUI 2 pack as described above.

PR Checklist

  • Based off latest main branch of toolkit
  • Contains NO breaking changes: CommunityToolkit.Uwp.* packages no longer ship Uno TFMs (Uno apps must use CommunityToolkit.WinUI.*).

@Sergio0694
Sergio0694 added this pull request to stack #907 December 1, 2026 06:46
@Sergio0694
Sergio0694 marked this pull request as ready for review December 2, 2026 19:14
@Sergio0694
Sergio0694 force-pushed the sergio0694-remove-uno-winui2 branch from 107278c to 4b2f5b0 Compare December 3, 2026 21:24
Base automatically changed from sergio0694-remove-legacy-uwp to main December 4, 2026 00:16
Sergio0694 and others added 3 commits December 3, 2026 16:16
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Uno is now only supported with WinUI 3 (Uno.WinUI), following the tooling change.
- CI: explicit build matrix (uwp for WinUI 2; wasdk and all Uno targets for WinUI 3), simplified packaging and generate steps for .slnx
- Remove WinUI 2 / Uno blocks from Dependencies.props and update docs
- Remove Uno WinUI 2 conditions in source
- Remove SlnGen leftovers (dotnet tool, solution items), use .slnx

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…at defaults

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Sergio0694
Sergio0694 force-pushed the sergio0694-remove-uno-winui2 branch from 4b2f5b0 to c962288 Compare December 4, 2026 00:16
@Sergio0694
Sergio0694 merged commit 179970d into main Dec 4, 2026
3 checks passed
@Sergio0694
Sergio0694 deleted the sergio0694-remove-uno-winui2 branch December 4, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant